﻿@using MealBooking.Core.Models.Accounts;
@using MealBooking.Core.Models.Orders;
@{
    Account account = ViewBag.Account;
    Order todayOrder = ViewBag.TodayOrder;
}
@if (todayOrder != null)
{
    if (todayOrder.IsOrdered)
    {
    <a href="@Url.Action("TodayOrder", "Order")" data-role="button" data-icon="check" title="Ordered.&#10;Click to View Details..." data-inline="true">
        Ordered</a>
    }
    else
    {
    <a href="@Url.Action("TodayOrder", "Order")" data-role="button" data-icon="delete" title="Not Ordered.&#10;Click to Add Meals..." data-inline="true">
        Not Ordered</a> 
    }
    if (todayOrder.IsBooked)
    {
    <a href="@Url.Action("CustomersTodayOrders", "Order")" data-role="button" data-icon="check" title="Booked.&#10;Click to View Details..." data-inline="true">
        Booked</a>
    }
    else
    {
    <a href="@Url.Action("CustomersTodayOrders", "Order")" data-role="button" data-icon="delete" title="Not Booked.&#10;Click to View Details..." data-inline="true">
        Not Booked</a>
    }
}
else
{
    <a href="@Url.Action("TodayOrder", "Order")" data-role="button" data-icon="delete" title="Not Ordered.&#10;Click to Add Meals..." data-inline="true">
        Not Ordered</a>
}
<a href="@Url.Action("Index", "Account")" data-role="button" data-icon="gear">@account.Name</a>